<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8"/>
    <!--强制让文档的宽度与设备的宽度保持1:1，并且文档最大的宽度比例是1.0，且不允许用户点击屏幕放大浏览-->
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <!--允许全屏模式浏览-->
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <!--指定的iphone中safari顶端的状态条的样式-->
    <meta content="black" name=" apple-mobile-web-app-status-bar-style"/>
    <!--去除Android平台中对邮箱地址的识别-->
    <meta content="email=no" name="format-detection"/>
    <meta http-equiv="Cache-Control" content="no-cache"/>
    <meta http-equiv="refresh" content="1500"/>
    <meta http-equiv="cleartype" content="on/off">
    <title></title>
    <link rel="icon" href="images/jmw.ico"/>
    <link type="text/css" rel="stylesheet" href="css/size.css"/>
    <link type="text/css" rel="stylesheet" href="css/commonality.css"/>
    <link type="text/css" rel="stylesheet" href="css/sort.css"/>
</head>
<body>
<div class="top">
    <div class="logo le">
        <a href="index.html">
            <img src="images/logo.png" alt="">
        </a>
    </div>
    <p class="name"></p>
    <div class="icon_home ri">
        <a href="index.html" title="">
            <img src="images/icon_home.png">
            <span>首页</span>
        </a>
    </div>
</div>
<!--推送-->
<div class="push">
    <ul></ul>
    <div class="foot">
        <p>粤ICP备12009797号-1奇人盛世（北京）文化传播有限公司</p>
    </div>
</div>
</body>

<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-88913818-5', 'auto');
    ga('send', 'pageview');

</script>

<script type="text/javascript" src="js/jquery-3.0.0.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<script>
    var CategoryProjectEndId = 0
    var id = 0;

    window.onload = function () {
        id = GetQueryString("ID");
        var name = GetQueryString("name");
        $('.name').html(name);
        getCategoryProjectList(id, 0);
        var titles = document.getElementsByTagName("title").item(0);
        titles.innerHTML = name;
        page();
    }

    /**
     * 获取项目分类列表
     * @param category
     * @param weight
     */
    function getCategoryProjectList(category, weight) {
        $.ajax({
            type: "GET",
            url: baseUrl + "/api/project/getCategoryProjectList/?category=" + category + '&weight=' + weight,
            dataType: "json",
            success: function (msg) {
                var str = '';
                $(msg.data).each(function () {
                    str += RenderProjectItem(this);
                    CategoryProjectEndId = this.id;
                })
                $('.push ul').append(str)
            }
        })
    }

    /**
     * 分页
     */
    function page() {
        var nScrollHight = 0;
        var nScrollTop = 0;
        var nDivHight = $(".push").height();
        $(".push").scroll(function () {
            nScrollHight = $(this)[0].scrollHeight;
            nScrollTop = $(this)[0].scrollTop;
            if (nScrollTop + nDivHight >= nScrollHight)
                getCategoryProjectList(id, CategoryProjectEndId);
        });
    }

    document.write("<script type='text/javascript' src='http://zoosnet110001212.emmyma.com/images/9710931_stat/baidubridge'>");
</script>
</html>
